package com.ymy.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * (TbSpeedkill)实体类
 *
 * @author makejava
 * @since 2023-10-31 20:46:40
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class TbSpeedkill {
    @TableId(type = IdType.AUTO)
    private Integer speedId;

    private Integer goodsId;

    private String speedTitle;

    private String speedPic;

    private BigDecimal speedPrice;

    private BigDecimal speedCostPrice;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    //创建时间

    private Date speedCreatetime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    //审核时间

    private Date speedChecktime;
    //审核状态 0未审核  -1通过 -2未通过

    private Integer speedCheckstatus;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    //秒杀开始时间

    private Date speedStarttime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    //秒杀结束时间

    private Date speedEndtime;
    //秒杀数量

    private Integer speedNum;
    //库存数量

    private Integer speedStock;

    private String speedInfo;

}
